xen/drivers/passthrough/iommu.c: let custom parameter parsing routines return errno
authorJuergen Gross <jgross@suse.com>
Wed, 23 Aug 2017 17:35:00 +0000 (19:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Aug 2017 14:20:24 +0000 (16:20 +0200)
commit31dd9294245e4f40fa73f4dcb6dfa709b6ce3b74
treef1697ca995e07a414e8b0144c89a3ef0865e365e
parent071ff8ae8aaf09e84eda4fbc75cf7d59b4753b59
xen/drivers/passthrough/iommu.c: let custom parameter parsing routines return errno

Modify the custom parameter parsing routines in:

xen/drivers/passthrough/iommu.c

to indicate whether the parameter value was parsed successfully.

This at once fixes a potential problem with multiple iommu=...
parameters: before the change iommu=no iommu=yes would switch iommu
off.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/iommu.c